package com.isnmp.nms.framework.discover.rstype;

import com.isnmp.common.snmp.mib.MibSoftwareRunEntry;
import com.isnmp.nms.framework.discover.ResourceInfo;

public class SoftwareRunType extends SNMPTableBasicMothType {
    public SoftwareRunType() {
        setResoureTypeName(Messages.getString("SoftwareRunType.0"));
    }

    public Class getORMappingClass() {
        return MibSoftwareRunEntry.class;
    }

    public String getResourceSearchMoth() {
        return Messages.getString("SoftwareRunType.1");
    }

    public ResourceInfo tableMibInfoToResouce(Object paramObject) {
        ResourceInfo localResourceInfo = new ResourceInfo();
        MibSoftwareRunEntry localMibSoftwareRunEntry = (MibSoftwareRunEntry) paramObject;
        localResourceInfo.setResourceRSIDValue(localMibSoftwareRunEntry.getHrSWRunIndex() + "");
        localResourceInfo.setResourceName(localMibSoftwareRunEntry.getHrSWRunName());
        localResourceInfo.setResourceParam(localMibSoftwareRunEntry.getHrSWRunPath());
        return localResourceInfo;
    }
}